<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>SetJSONDouble</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">SetJSONDouble()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#006666"><b>SetJSONDouble</b></font>(JSONValue, Value.d)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Change the <a href="jsontype.html">type</a> of the JSON value to <font color="#924B72">#PB_JSON_Number</font> and 
store the given double value. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>JSONValue</i></td>
<td width="90%"> 
 
The JSON value. 

 

</td></tr>
<tr><td><i>Value.d</i></td>
<td> 
 
The value to store. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>Remarks</b></p><blockquote>



Note that JSON does not permit the special floating point values +Infinity, -Infinity or NaN in JSON data. 
If such a value is set with this function, it will be replaced by a JSON 'null' literal when the 
data is being saved or encoded. The functions <a href="../math/isinfinity.html">IsInfinity()</a> or <a href="../math/isnan.html">IsNaN()</a> can be used to detect 
this case. 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">If</font></b> <font color="#006666">CreateJSON</font>(0)
    ArrayValue =<font color="#006666"> SetJSONArray</font>(<font color="#006666">JSONValue</font>(0))
<font color="#006666">    SetJSONDouble</font>(<font color="#006666">AddJSONElement</font>(ArrayValue), 1.23)
<font color="#006666">    SetJSONDouble</font>(<font color="#006666">AddJSONElement</font>(ArrayValue), 4.56)
    
    <b><font color="#006666">Debug</font></b> <font color="#006666">ComposeJSON</font>(0)
  <b><font color="#006666">EndIf</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="getjsondouble.html">GetJSONDouble()</a>, 
<a href="setjsonarray.html">SetJSONArray()</a>, <a href="setjsonboolean.html">SetJSONBoolean()</a>, 
<a href="setjsonfloat.html">SetJSONFloat()</a>, <a href="setjsoninteger.html">SetJSONInteger()</a>, <a href="setjsonnull.html">SetJSONNull()</a>, 
<a href="setjsonobject.html">SetJSONObject()</a>, <a href="setjsonstring.html">SetJSONString()</a>, <a href="setjsonquad.html">SetJSONQuad()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=setjsonboolean.html>SetJSONBoolean()</a> - <a href=index.html>Json Index</a> - <a href=setjsonfloat.html>SetJSONFloat()</a> -&gt;



</body></html>